<?
/**
* Copyright (c) 2002-2007 BioWare Corp.
* http://www.bigdaddymonitor.org
*
* This file is part of the BigDaddy Monitoring
* program. It is free software distributed under
* the terms of the BSD License. It is ditributed
* in the hopes that it will be useful, but
* WITHOUT ANY WARRANTY; without event the implied
* warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE.
*
* The BSD License is available from:
* http://www.opensource.org/licenses/bsd-license.php
**/
?>
<!-- Put IE into quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<?
/*
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
*/
?>

<head>

<link rel="stylesheet" href="<?=CD_COMMON_2006;?>/css/style.css" type="text/css" />
<link rel="stylesheet" href="<?=THEME_DIR;?>/css/toolbar.css" type="text/css" />
<link rel="stylesheet" href="/_commonint/themes/staff/blue/style_staff.inc" type="text/css" />

<script type="text/javascript" src="<?=CD_COMMON_2006;?>/js/common.js"></script>

<?

// Top menu
if (!$App->bNoMenu) // check the $App object later for this check
{
    ?>
    <script type="text/javascript" src="<?=CD_COMMON_2006;?>/js/udm4/udm-resources/udm-custom.js"></script>
    <script type="text/javascript" src="<?=CD_COMMON_2006;?>/js/udm4/udm-resources/udm-control.js"></script>
    <script type="text/javascript" src="<?=CD_COMMON_2006;?>/js/udm4/udm-resources/udm-style.js"></script>
    <?
}

// Treeview

if (is_array($App->aOptions))
{
    ?>
    <script type="text/javascript" src="<?=CD_COMMON_2006;?>/js/treeview/ua.js"></script>
    <script type="text/javascript" src="<?=CD_COMMON_2006;?>/js/treeview/ftiens4.js"></script>
    <?
}

// Toolbar

if (is_array($Content->aOptions))
{
  
    // IE and Firefox use different positioning CSS values for the toolbar alignment
    
    if (substr_count($_SERVER["HTTP_USER_AGENT"],"MSIE")!=0)
    {
        ?>
        <link rel="stylesheet" href="<?=CD_COMMON_2006;?>/css/toolbar_ie.css" type="text/css" />
        <?
    }
    else
    {
        ?>
        <link rel="stylesheet" href="<?=CD_COMMON_2006;?>/css/toolbar_ff.css" type="text/css" />
        <?
    }
    

}

// Custom

if ($displayParams["applicationCSS"])
{
    $App->sApplicationCSS = $displayParams["applicationCSS"];
}

if ($App->sApplicationCSS)
{
    ?>
    <link rel="stylesheet" href="<?=$App->sApplicationCSS;?>" type="text/css" />
    <?
}


if ($App->sApplicationJS)
{
    ?>
    <script type="text/javascript" src="<?=$App->sApplicationJS;?>"></script>
    <?
}
?>

<script language="javascript">
// Set some dynamic variables

var theme_sHideIcon ="<?=THEME_DIR;?>/images/app_title_hide_tv.gif";
var theme_sShowIcon ="<?=THEME_DIR;?>/images/app_title_show_tv.gif";

</script>


</head>

<body donload="theme_OnLoad();" scroll="no" donresize="theme_ResizeLayout();" onmousemove="theme_GetPos(event)" onmouseup="theme_mouseButtonPos='up'">

<?

// Top menu

if (!$App->bNoMenu) // check the $App object later for this check
{
    require(CP_THEME_COMMON_2006."/php/top_menu.inc");
}

// App title

if (1==1)
{
    require(CP_THEME_COMMON_2006."/php/app_title.inc");
}


// Treeview

if (is_array($App->aOptions))
{
    require(CP_THEME_COMMON_2006."/php/treeview.inc");
}


// Page Title

if (($Content->sTitle) || ($pageParams["title"]) )
{
    
    //require(CP_THEME_COMMON_2006."/php/page_title.inc");
}


// Toolbar

if (is_array($Content->aOptions))
{
    require(CP_THEME_COMMON_2006."/php/toolbar.inc");
}


// Content

if (1==1)
{
    require(CP_THEME_COMMON_2006."/php/content.inc");
}

?>
